package com.yuwubao.hz_International.entities.repository

import com.yuwubao.hz_International.entities.WelfareTotal
import org.springframework.data.jpa.repository.JpaRepository
import org.springframework.data.jpa.repository.JpaSpecificationExecutor
import org.springframework.data.jpa.repository.Query

interface WelfareTotalRepo : JpaSpecificationExecutor<WelfareTotal>, JpaRepository<WelfareTotal, Int> {
    @Query(nativeQuery = true,value = "select * from welfare_total where to_days(createTime) = to_days(now())")
    fun findToday(): WelfareTotal?
}